package logic

import (
	"cld-quick-cli/dao"
	"cld-quick-cli/database/models"
)

// GetCommunityListLogic 获取列表
func GetCommunityListLogic() ([]models.CommunityListModel, error) {
	return dao.GetCommunityList()
}

// GetCommunityDetailsLogic 获取详情
func GetCommunityDetailsLogic(id *string) (*models.CommunityModel, error) {
	return dao.GetCommunityDetailsByCommunityId(id)
}
